home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
- Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
- Begin VB.Form MsFlexSample
- BackColor = &H00FFFFFF&
- Caption = "MsFlexSample"
- ClientHeight = 6960
- ClientLeft = 975
- ClientTop = 2025
- ClientWidth = 11865
- LinkTopic = "Form1"
- MDIChild = -1 'True
- ScaleHeight = 6960
- ScaleWidth = 11865
- WindowState = 2 'Maximized
- Begin VB.CommandButton Command2
- BackColor = &H00FFFFFF&
- Caption = "Close"
- Height = 345
- Left = 8445
- Style = 1 'Graphical
- TabIndex = 11
- Top = 180
- Width = 810
- End
- Begin MSMask.MaskEdBox MaskEd
- Height = 315
- Left = 7425
- TabIndex = 10
- Top = 1035
- Width = 1755
- _ExtentX = 3096
- _ExtentY = 556
- _Version = 327681
- BorderStyle = 0
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 177
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Format = "dd/mm/yy"
- PromptChar = "_"
- End
- Begin VB.Frame Frame1
- BackColor = &H00FFFFFF&
- Height = 1092
- Left = 1275
- TabIndex = 4
- Tag = "noprint"
- Top = 4920
- Width = 6072
- Begin VB.Label Label3
- BackColor = &H8000000E&
- Caption = "Quantity"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 177
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800080&
- Height = 360
- Left = 96
- TabIndex = 8
- Top = 444
- Width = 1308
- End
- Begin VB.Label Label1
- BackColor = &H00FFFFFF&
- Caption = "Amount"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 177
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000C0&
- Height = 396
- Left = 3036
- TabIndex = 7
- Top = 468
- Width = 1008
- End
- Begin VB.Label Label2
- Alignment = 2 'Center
- BackColor = &H00FF0000&
- Caption = "$ 0.00"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 177
- Weight = 700
- Underline = -1 'True
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 372
- Left = 4104
- TabIndex = 6
- Top = 468
- Width = 1332
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- Caption = "6"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 177
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 372
- Left = 1428
- TabIndex = 5
- Top = 444
- Width = 1332
- End
- End
- Begin VB.CommandButton Command1
- BackColor = &H00FFFFFF&
- Caption = "Click to Invoice Style"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 177
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 408
- Left = 3870
- Style = 1 'Graphical
- TabIndex = 3
- Top = 975
- Width = 3180
- End
- Begin VB.PictureBox Picture1
- AutoSize = -1 'True
- Height = 1560
- Left = 348
- Picture = "MsFlexSample.frx":0000
- ScaleHeight = 1500
- ScaleWidth = 3075
- TabIndex = 2
- Top = 120
- Width = 3135
- End
- Begin MSFlexGridLib.MSFlexGrid MSFlex
- Bindings = "MsFlexSample.frx":0885
- Height = 2772
- Left = 552
- TabIndex = 1
- Top = 2124
- Width = 7992
- _ExtentX = 14102
- _ExtentY = 4868
- _Version = 65541
- Rows = 15
- Cols = 4
- FixedCols = 0
- ForeColorFixed = 16711680
- BackColorBkg = 16777215
- WordWrap = -1 'True
- AllowUserResizing= 3
- End
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 177
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 210
- MultiLine = -1 'True
- TabIndex = 0
- Text = "MsFlexSample.frx":0895
- Top = 1596
- Visible = 0 'False
- Width = 9555
- End
- Begin VB.Data Data1
- Caption = "Data1"
- Connect = "Access"
- DatabaseName = "C:\myweb\Publish.mdb"
- DefaultCursorType= 0 'DefaultCursor
- DefaultType = 2 'UseODBC
- Exclusive = 0 'False
- Height = 324
- Left = 4416
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "Customers"
- Top = 3960
- Width = 1692
- End
- Begin VB.Label Label5
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- Caption = "Printing MSFlexGrid with RoboPrint"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 177
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000C0&
- Height = 345
- Left = 600
- TabIndex = 9
- Top = 1755
- Width = 6810
- End
- Begin VB.Shape Shape2
- BackColor = &H000000FF&
- BackStyle = 1 'Opaque
- FillStyle = 5 'Downward Diagonal
- Height = 240
- Left = 8475
- Shape = 2 'Oval
- Top = 6030
- Width = 210
- End
- Begin VB.Shape Shape1
- BackColor = &H000000FF&
- BackStyle = 1 'Opaque
- FillStyle = 4 'Upward Diagonal
- Height = 270
- Left = 720
- Shape = 2 'Oval
- Top = 6030
- Width = 210
- End
- Begin VB.Line Line1
- BorderWidth = 3
- X1 = 1035
- X2 = 8250
- Y1 = 6150
- Y2 = 6150
- End
- Attribute VB_Name = "MsFlexSample"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Static Style As Boolean
- Style = Not Style
- If Style Then
- Command1.Caption = "Click to Recordset Style"
- Invoice
- Frame1.Tag = ""
- Text1.Visible = True
- Label5.Visible = False
- Command1.Caption = "Click to Invoice Style"
- DTSource
- Frame1.Tag = "noprint"
- Text1.Visible = False
- Label5.Visible = True
- End If
- End Sub
- Private Sub Command2_Click()
- Unload Me
- End Sub
- Private Sub Form_Load()
- MaskEd = Format(Now, "dd/mm/yy")
- Data1.DatabaseName = App.Path & "\Publish.mdb"
- Invoice
- End Sub
- Private Sub DTSource()
- MSFlex.Redraw = True
- 'MSFlex.Clear
- 'MSFlex.Rows = 1
- Data1.Refresh ' = "Customers"
- MSFlex.Refresh
- End Sub
- Public Sub Invoice()
- MSFlex.Clear
- MSFlex.Rows = 10
- MSFlex.Cols = 4
- MSFlex.ColWidth(0) = 2100
- MSFlex.TextMatrix(0, 0) = "Product"
- MSFlex.ColAlignment(0) = 1
- MSFlex.ColWidth(1) = 1600
- MSFlex.ColAlignment(1) = 6
- MSFlex.TextMatrix(0, 1) = "Units"
- MSFlex.ColAlignment(2) = 6
- MSFlex.ColWidth(2) = 1700
- MSFlex.TextMatrix(0, 2) = "Price"
- MSFlex.ColAlignment(3) = 6
- MSFlex.ColWidth(1) = 1100
- MSFlex.TextMatrix(0, 3) = "Total"
- MSFlex.RowHeight(2) = 400
- MSFlex.RowHeight(1) = 1100
- MSFlex.TextMatrix(1, 0) = "RobOPrintVB5.Ocx Demo"
- MSFlex.Col = 0
- MSFlex.Row = 1
- MSFlex.CellBackColor = &HFFFF&
- MSFlex.CellFontSize = 12
- MSFlex.TextMatrix(2, 0) = "Sample Project"
- MSFlex.TextMatrix(3, 0) = "MsFlexSample Form"
- MSFlex.TextMatrix(4, 0) = "Sample Project"
- MSFlex.TextMatrix(1, 1) = "1.00"
- MSFlex.TextMatrix(1, 2) = "0.00"
- MSFlex.TextMatrix(1, 3) = "0.00"
- MSFlex.TextMatrix(2, 1) = "1.00"
- MSFlex.TextMatrix(2, 2) = "0.00"
- MSFlex.TextMatrix(2, 3) = "0.00"
- MSFlex.TextMatrix(3, 1) = "1.00"
- MSFlex.TextMatrix(3, 2) = "0.00"
- MSFlex.TextMatrix(3, 3) = "0.00"
- MSFlex.TextMatrix(4, 1) = "1.00"
- MSFlex.TextMatrix(4, 2) = "0.00"
- MSFlex.TextMatrix(4, 3) = "0.00"
- MSFlex.TextMatrix(5, 0) = "Sample MdiForm"
- MSFlex.TextMatrix(5, 1) = "1.00"
- MSFlex.TextMatrix(5, 2) = "0.00"
- MSFlex.TextMatrix(5, 3) = "0.00"
- End Sub
- Private Sub Picture1_Click()
- Invoice
- End Sub
-